package com.dfbz.demo01;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo04_finally {
    public static void main(String[] args) {


        try {
            System.out.println(1 / 0);
        } finally {
            System.out.println("释放资源");
        }

        /*try {
            System.out.println(1 / 0);
            System.out.println("b");

        } catch (Exception e) {
            System.out.println("c");
        } finally {
            System.out.println("我是不管有没有出现异常都会执行的...");
        }*/

    }
}
